home *** CD-ROM | disk | FTP | other *** search
/ cyber.net interactivo 3 / inter@ivo 1996-04.iso / cybint3 / bin / burmest.dxr / 00034.ls < prev    next >
Encoding:
Text File  |  1996-03-22  |  1.6 KB  |  68 lines

  1. on exitFrame
  2.   global dir
  3.   set hot to 0
  4.   set check to 0
  5.   set i to 11
  6.   set mov to 0
  7.   if the mouseCast = 102 then
  8.     go("naveg")
  9.   end if
  10.   repeat while i < 14
  11.     if rollOver(i) then
  12.       set check to 1
  13.       set hot to i
  14.       exit repeat
  15.     end if
  16.     set i to i + 1
  17.   end repeat
  18.   if check = 1 then
  19.     set copo to 2
  20.     repeat while copo < 5
  21.       set the visible of sprite copo to 0
  22.       set copo to copo + 1
  23.     end repeat
  24.     if hot = 13 then
  25.       set the visible of sprite 5 to 1
  26.       set the visible of sprite 6 to 1
  27.     else
  28.       set the visible of sprite 6 to 0
  29.     end if
  30.   end if
  31.   if check = 0 then
  32.     if the visible of sprite 6 = 1 then
  33.       set the visible of sprite 6 to 0
  34.     end if
  35.     if the visible of sprite 5 = 1 then
  36.       set the visible of sprite 5 to 0
  37.     else
  38.       set the visible of sprite 5 to 1
  39.     end if
  40.     if the visible of sprite 3 = 1 then
  41.       set the visible of sprite 3 to 0
  42.       set the visible of sprite 2 to 1
  43.       set dir to 1
  44.     else
  45.       if (the visible of sprite 2 = 1) and (mov = 0) then
  46.         set the visible of sprite 2 to 0
  47.         if dir = -1 then
  48.           set the visible of sprite 3 to 1
  49.         end if
  50.       else
  51.         if (the visible of sprite 4 = 1) and (mov = 0) then
  52.           set the visible of sprite 4 to 0
  53.           set dir to -1
  54.         else
  55.           if dir = 1 then
  56.             set the visible of sprite 4 to 1
  57.           end if
  58.           if dir = -1 then
  59.             set the visible of sprite 2 to 1
  60.           end if
  61.         end if
  62.       end if
  63.     end if
  64.   end if
  65.   updateStage()
  66.   go(the frame)
  67. end
  68.